﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace MLGest.Models
{
    public class LogInModel
    {

        public string strButtons { get; set; }

        [Required(ErrorMessage="Por favor ingrese un usuario")]
        [Display(Name = "Usuario")]        
        public string strUsuario { get; set; }

        [Required(ErrorMessage = "Por favor ingrese el password")]
        [Display(Name="Password")]
        [DataType(DataType.Password)]
        public string strPassword
        {
            get;set;
        }

        [Required(ErrorMessage = "Por favor ingrese el password")]
        [Display(Name = "Password")]
        [DataType(DataType.Password)]
        public enumRolUsuario objRol
        {
            get;
            set;
        }
    }

    public enum enumRolUsuario
    {
        Administrador,
        Ventas,
        Compras
    }
}